<?php
/**
 * The template for displaying member pages.
 *
 *
 * Template Name: Woo Commerce
 * 
 */
 
$tlset = get_option( 'tlset' );

get_header(); 
			
	$sbar = get_post_meta(get_option('woocommerce_shop_page_id'), 'cro_sidebar', true);
	echo cro_headerimg(get_option('woocommerce_shop_page_id'), 'page');				
	?>

			</div>
	</div>

	</div>

	<div class="mainbody">
		<div class="mainin">

	<div class="main singleitem">				
		<div class="row singlepage">


			<?php if ($sbar == 1) { ?>


				<div class="eight column">
					<div class="page wooshop">
						<?php woocommerce_content(); ?>
					</div>
				</div>

				<div class="four column">
					<?php get_sidebar('shop'); ?>
				</div>



			<?php } else { ?>

				<div class="twelve column">
					<div class="page wooshop">
						<?php woocommerce_content(); ?>
					</div>
				</div>

			<?php } ?>

		</div>
	</div>

<?php get_footer(); ?>